package cn.jack.javalib.player;

/**
 * Created by chengyinggen on 2019/2/26.
 */
public abstract class PlayerState {

    public static final int PLAY = 0;
    public static final int PAUSE = 1;
    public static final int STOP = 2;
    protected IPlayer mPlayer;

    public PlayerState(IPlayer mPlayer) {
        this.mPlayer = mPlayer;
    }

    public abstract void handle(int action);

    @Override
    public String toString() {
        return "current state:" + this.getClass().getSimpleName();
    }
}
